package com.adds.lvds.dao.impl.code;

import java.util.List;
import java.util.Map;

import com.adds.lvds.model.code.SysCode;
import com.adds.lvds.model.code.SysCodeType;

public interface SysCodeMapper {

	/**
	 * 录入代码值数据
	 * 
	 * @param code
	 * @throws Exception
	 */
	public void insertSysCode(SysCode code) throws Exception;

	/**
	 * 编辑代码值类型
	 * 
	 * @param code
	 * @throws Exception
	 */
	public void updateSysCode(SysCode code) throws Exception;

	/**
	 * 删除代码值数据
	 * 
	 * @param map
	 * @throws Exception
	 */
	public void deleteSysCode(Map<String, Object> map) throws Exception;

	/**
	 * 根据条件返回代码值数据
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public SysCode getSysCodeByMap(Map<String, Object> map) throws Exception;

	/**
	 * 分页查询
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<SysCode> pageSysCodeByCondition(Map<String, Object> map)
			throws Exception;
	
	/**
	 * 录入代码类型数据
	 * @param codeType
	 * @throws Exception
	 */
   public void insertCodeType(SysCodeType codeType)throws Exception;
    /**
     * 编辑代码类型数据
     * @param codeType
     * @throws Exception
     */
	
	public void updateCodeType(SysCodeType codeType)throws Exception;
	/**
	 * 删除代码类型数据
	 * @param typeName
	 * @throws Exception
	 */
	
	public void deleteCodeType(String typeName)throws Exception;
	/**
	 * 根据条件获取代码类型
	 * @param typeName
	 * @return
	 * @throws Exception
	 */
	public SysCodeType getCodeTypeByMap(String typeName)throws Exception;
	/**
	 * 分页查询全部代码类型
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<SysCodeType> findAllSysCodeType()
			throws Exception;
	/**
	 * 分页查询代码类型
	 * 
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public List<SysCodeType> pageSysCodeTypeByCondition(Map<String, Object> map)
			throws Exception;

}
